all: analyseXML analyseDTD analyseComplet
analyseXML: *.l *.y *.cpp  makefile
	flex -Pxml_ xml.l
	bison -pxml_ --debug --verbose --defines=xml_.tab.h xml.y

analyseDTD: *.l *.y *.cpp makefile
	flex -Pdtd_ dtd.l
	bison -pdtd_ --debug --verbose --defines=dtd_.tab.h dtd.y

analyseComplet: *.cpp makefile
	g++ -g -DYYDEBUG=1 -o analyseComplet lex.dtd_.c dtd.tab.c lex.xml_.c xml.tab.c *.cpp 

clean:
	-rm -rf *.tab.c lex.*.c *.tab.h *.output analyseComplet *.o
